package sample12;

public class Car implements Propeties {

	int num;
	double gas;

	Car(int num, double gas) {
		this.num = num;
		this.gas = gas;
	}

	public int getNum() {
		return num;
	}

	public void setNum(int num) {
		this.num = num;
	}

	public double getGas() {
		return gas;
	}

	public void setGas(double gas) {
		this.gas = gas;
	}

	public void toPropeties() {
		System.out.println("class= Car");
		System.out.println("num=" + num);
		System.out.println("gas=" + gas);
	}

}
